<?php
// Projektu sarasas ir linkinimas i juos
$sql = mysql_query1("SELECT * FROM projektai");
while ($row = mysql_fetch_assoc($sql)) {
	if ($_SESSION['username']) {
		if (defined("LEVEL") && LEVEL == 30) {
			$text .= "<img src=\"images/icons/bullet2.gif\" alt=\"o\" align=\"absmiddle\" border=\"0\"/> <a href='?id," . $row['id'] ."'>" . $row['pav'] ."</a><br/>";
		}
		else {
			if ($row['rodyti'] == 'TAIP') {
				$text .= "<img src=\"images/icons/bullet2.gif\" alt=\"o\" align=\"absmiddle\" border=\"0\"/> <a href='?id," . $row['id'] ."'>" . $row['pav'] ."</a><br/>";
			}
		}
	}
}
lentele("NightVision Extra", $text);
?>